package usb.student;

public class StudentTest {
    public static void main(String[] args) {

        Student[] students = new Student[2];

        students[0] = new Student("张三", 20);
        students[1] = new Student("李四", 22);


        for (int i = 0; i < students.length; i++) {
            Student s = students[i];
            System.out.println("姓名: " + s.getName());
            System.out.println("年龄: " + s.getAge());
        }
    }
}
